package org.dr.st_docker.aop.aspectj.pojo;

public class Role {


    private Long roleId;
    private String roleName;
    private String roleNote;


    public Role() {
        //默认构造方法
        //适合简单对象或者延迟初始化
    }
    public Role(Long roleId, String roleName, String roleNote){
        //含参构造函数
        //适合需要立即初始化的对象
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleNote = roleNote;
    }



    //generate-->Getter and Setter和toString（）生成

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleNote() {
        return roleNote;
    }

    public void setRoleNote(String roleNote) {
        this.roleNote = roleNote;
    }
    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleNote='" + roleNote + '\'' +
                '}';
    }
}
